package com.affinity;


/**
 * @author cheremin
 * @since 27.04.12,  15:07
 */
public interface ThreadAffinityService{

    public boolean isActuallyAvailable();

    public void restrictCurrentThreadTo( final CPU... cpu );

    public void restrictCurrentThreadTo( final Iterable<? extends CPU> cpus );

    public Iterable<? extends CPU> currentThreadRestrictions();

    public CPU currentThreadCPU();


}
